package com.example.asm;

/**
 * @Description : TODO
 * @Author : ZYX
 * @Date : 2022/6/15 09:20
 * @Version : 1.0
 **/
public class EmployeeClassLoader extends ClassLoader{

    public Class defineClassFromClassFile(String className,byte[] classFile) throws ClassFormatError{
        return defineClass(className, classFile, 0, classFile.length);
    }

    public Class<?> defineClassForName(String name, byte[] data) {
        return this.defineClass(name, data, 0, data.length);
    }

}
